//
//  DKUnauthorizedNoRecordView.m
//  DanKU
//
//  Created by 吴斌 on 2023/10/24.
//

#import "DKUnauthorizedNoRecordView.h"

@implementation DKUnauthorizedNoRecordView
-(instancetype)init{
    if(self == [super init]){
        [self dk_addSubView];
    }
    return self;
}
- (void)dk_addSubView{
    UIImageView * dk_orderImgView = [[UIImageView alloc] init];
    dk_orderImgView.userInteractionEnabled = YES;
    dk_orderImgView.image = DK_GetImage(@"dk_productNoOrder");
    [self addSubview:dk_orderImgView];
    [dk_orderImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@(DK_IsWidthScale(0)));
        make.height.equalTo(@(DK_IsWidthScale(100)));
        make.width.equalTo(@(DK_IsWidthScale(160)));
        make.centerX.equalTo(self);
    }];
    UILabel * dk_orderTitleLab = [[UILabel alloc] init];
    dk_orderTitleLab.textColor = DK_Hex(@"#999999");
    dk_orderTitleLab.text = @"No current record, go to apply for a loan";
    dk_orderTitleLab.font = DK_FONT_Regular(13);
    dk_orderTitleLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:dk_orderTitleLab];
    [dk_orderTitleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DK_IsWidthScale(0)));
        make.right.equalTo(@(DK_IsWidthScale(0)));
        make.top.equalTo(dk_orderImgView.mas_bottom).offset(DK_IsWidthScale(30));
        make.height.equalTo(@(DK_IsWidthScale(18)));
    }];
}
@end
